WebFileUploader is designed with rock-solid API and extensible client-side events to give you total control over uploading process. Works in conjunction with real-time progress bar feature, WebFileUploader sent event notification to client-side in real-time - such as OnBeforeUpload, OnAfterUpload OnErrorUpload, and even OnUploading event.
The following lists the available client side events in more details:
- OnInitialize.
Fired once when the control is initialized.
- OnBeforeUpload.
Fired when a file is about to be uploaded.
- OnAfterUpload.
Fired when a file has been successfully uploaded.
- OnUploading.
Fired when uploader control receives progress information on a file being uploaded.
- OnCancelUpload.
Fired when a file upload is cancelled.
- OnErrorUpload.
Fired when a file upload is failed due to error.
The following example shows how to handle the client-side events, and shows the information passed to the parameter of each event.
<ISWebTextEditor:WebFileUploaderID="WebFileUploader1"runat="server"
Width="450px" UploadPath="./Upload"AllowAdd="false" AllowRemove="false">
<ClientSideEventsOnAfterUpload="doAfterUpload"
OnBeforeUpload="doBeforeUpload"OnCancelUpload="doCancelUpload"
OnInitialize="doInitialize"OnUploading="doProcessing"
OnError="doErrorUpload" /> </ISWebTextEditor:WebFileUploader>
| C# | Copy Code |
function doAfterUpload(id, webFileUploadInfo) |
|
Other Resources
{Large files uploading with minimal resources consumption}
{IIS 6 and IIS 7 Integrated mode support}
{Webfarm and multiple worker requests support with built-in FileStateServer}
{Rich user experiences}
{Built-in file saving}
{Real-time progress bar}
{Upload}
{Server-side events}
{Initial files count}
{Limit upload files by type, count, or custom}
{Limit upload size and total upload size}
Copy Code